package com.qd.hik.dto.invoice;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 *  获得开票地址
 *
 * @author sjk
 * @create 2024-05-29 16:00
 * @since 1.0.0
 */
@Data
@Accessors(chain = true)
public class HkGetInvoiceReq {
    /**
     * 待开发票的账单编号
     */
    @NotNull(message = "待开发票的账单编号不能为空")
    private List<String> billNos;
    /**
     * 开票账户
     */
    @NotNull(message = "开票账户不能为空")
    private Integer groupId;
    /**
     * 订单业务类型，1-停车缴费，2-包月
     */
    @NotNull(message = "订单业务类型不能为空")
    private Integer billType;
    /**
     * 驾驶人ID
     */
    private Integer driverId;
    /**
     * 发票抬头
     */
    private String buyerName;
    /**
     * 税号
     */
    private String taxNum;
    /**
     * 手机号码
     */
    private String phone;
    /**
     * 电子邮箱
     */
    private String email;

    public void freeData() {
        this.billNos = null;
        this.groupId = null;
        this.billType = null;
        this.driverId = null;
        this.buyerName = null;
        this.taxNum = null;
        this.phone = null;
        this.email = null;
    }
}